package servidor;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="TURMA_DISCIPLINA", schema="servidor")
public class DisciplinaTurma implements Serializable{
	private static final long serialVersionUID = 1L;
	@Id
	@Column(name="COD_DISCIPLINA", nullable = false)
	private String codDisciplina;
	@Column(name="COD_TURMA", nullable = false)
	private String codTurma;
	@Column(name="ANO_TURMA", nullable = false)
	private int anoTurma;

	public DisciplinaTurma() {
	}
	public DisciplinaTurma(String codDisciplina, String codTurma, int anoTurma) {
		setAnoTurma(anoTurma);
		setCodDisciplina(codDisciplina);
		setCodTurma(codTurma);
	}	
	public String getCodDisciplina() {
		return codDisciplina;
	}
	public void setCodDisciplina(String codDisciplina) {
		this.codDisciplina = codDisciplina;
	}
	public String getCodTurma() {
		return codTurma;
	}
	public void setCodTurma(String codTurma) {
		this.codTurma = codTurma;
	}
	public int getAnoTurma() {
		return anoTurma;
	}
	public void setAnoTurma(int anoTurma) {
		this.anoTurma = anoTurma;
	}
	public String toString(){
		return "||"+getCodDisciplina()+'|'+getCodTurma()+'|'+getAnoTurma()+"||";
	}
}
